package com.hllxd.hism.star.basic.service.model.dapan;

import java.math.BigDecimal;

public class Formatter {

	public static double scale(double number, int scale) {
		BigDecimal bigDecimal = new BigDecimal(number);
		return bigDecimal.setScale(scale, BigDecimal.ROUND_HALF_UP).doubleValue();
	}
}
